﻿/****************************************
 *  copyright (c) 2008 leo shen
 *  
 *  all rights reserved         
 * 
 *  e-mail : syl.lucky@gmail.com
 * *************************************/

using System;
using System.Collections.Generic;
using System.Text;
using DotUpdater.Core.Versions;

namespace DotUpdater.Core
{
    /// <summary>
    /// a file info
    /// </summary>
    public class App_File : App_FileORFolder
    {
        public App_File(string name, IVersion version)
            : base(name)
        {
            Version = version;
            UpdateMode = UpdateMode.auto;
        }

        /// <summary>
        /// the version of this file
        /// </summary>
        public IVersion Version
        {
            get;
            set;
        }

        public UpdateMode UpdateMode
        {
            get;
            set;
        }
    }
}
